import type { VabRouteRecordRaw } from '../types'
import Layout from '/@vab/layouts/index.vue'
const creditManagementRouter: VabRouteRecordRaw[] = [
  {
    path: '/credit',
    name: 'Credit',
    component: Layout,
    meta: {
      title: '信用管理',
      icon: 'bank-card-2-line',
    },
    children: [
      {
        path: 'draft',
        name: 'CreditDraft',
        component: () =>
          import('/@/views/creditIndex/draft.vue'),
        meta: {
          title: '信用档案创建',
          noKeepAlive: false,
        },
      },
      {
        path: 'custom',
        name: 'CreditCustom',
        component: () =>
            import('/@/views/creditIndex/custom.vue'),
        meta: {
          title: '信用档案查询',
          noKeepAlive: false,
        },
      },
     
      {
        path: 'create',
        name: 'CreditCustomCreate',
        component: () =>
            import('/@/views/creditIndex/customCreate.vue'),
        meta: {
          title: '客户信用档案创建',
          tabHidden: false,
          hidden: true,
          noKeepAlive: true,
        },
      },
      {
        path: 'detail',
        name: 'CreditDateil',
        component: () =>
            import('/@/views/creditIndex/detail.vue'),
        meta: {
          title: '详情',
          tabHidden: false,
          hidden: true,
        },
      },
      {
        path: 'customDetail',
        name: 'CreditCustomDetail',
        component: () =>
            import('/@/views/creditIndex/customDetail.vue'),
        meta: {
          title: '信用变动明细',
          tabHidden: false,
          hidden: true,
          noKeepAlive: true,
        },
      },
    ],
  },
]

export default creditManagementRouter
